package me.ingxin.android.keyboard

import android.widget.EditText

/**
 * 开启安全键盘
 * @param title 安全键盘标题
 * @return 安全键盘
 */
fun EditText.safeKeyboard(title: String? = null): SafeKeyboard {
    return SafeKeyboard(this).apply {
        safeKeyboardView.titleTextView.text = title
    }
}